Practice exercises and activities based on the book "Interactive Data Visualization with Python: Present your data as an effective and compelling story," 2nd Edition

Book link: https://www.amazon.com/Interactive-Data-Visualization-Python-compelling/dp/1800200943

Date: September 2021

Author: Steven Ponce

Chapter 3: From Static to Interactive Visualization

from bokeh.resources import INLINE import bokeh.io from bokeh import * bokeh.io.output_notebook(INLINE)

Excercise creating the base static plot for an interactive viz

Interactive visualization w/ Plotly Express

Activity 3: Creating different interactive visualization using plotly express

Step 1 - recreate CO2 and GDP DF

Step 2 - create a scatter plot with x- and y-axes as year and co2 respectively. Add box plot for the co2 values with the marginal_y parameter

Step 3 - create a rug plot for gdp values with the marginal_x parameter. Add the animation on the year column

Step 4 - create a density contour with the x- and y-axes as gdp and co2.